package com.secxiot.provider.communication.dao;

import com.secxiot.provider.communication.entity.CommunicationDept;
import com.secxiot.provider.communication.entity.CommunicationDeptExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunicationDeptDao {
    int countByExample(CommunicationDeptExample example);

    int deleteByExample(CommunicationDeptExample example);

    int deleteByPrimaryKey(Long id);

    int insert(CommunicationDept record);

    int insertSelective(CommunicationDept record);

    List<CommunicationDept> selectByExample(CommunicationDeptExample example);

    CommunicationDept selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") CommunicationDept record, @Param("example") CommunicationDeptExample example);

    int updateByExample(@Param("record") CommunicationDept record, @Param("example") CommunicationDeptExample example);

    int updateByPrimaryKeySelective(CommunicationDept record);

    int updateByPrimaryKey(CommunicationDept record);

	void deleteByCommunicationId(@Param("communicationId")Long communicationId);
}